package com.dao;

import java.util.List;

import com.model.Paper;
import com.util.Pagination;
import com.util.QueryTerm;

public interface PaperDao {
	 public void save(Paper transientInstance);
	 public void delete(Paper persistentInstance);
	 //根据id选择卷子
	 public Paper findById( java.lang.Integer id);
	 public List<Paper> findByExample(Paper instance);
	 public List findAll();
	 public Paper merge(Paper detachedInstance);
	 public Pagination getPaperList(Paper paper, Pagination page);
	
	 
	 //用于分页显示
	 public Pagination queryForPage(QueryTerm query);
	 
	 public int countPaper();
	 
	 public int SumPaper();
	 
	public boolean checkpw(String password,int pid);
	
	public List showPaperScore(int i);
	
	public Pagination getMyPaperList(Paper paper, Pagination page);
	
	public void deletePaperProgram(String paperid, String id);
	
	public void paperDel(int id);
	
	public void PaperEditInfo(Paper paper);
	
	public int getPaperScore(int parseInt);

}
